{extend name="user/index" /}
{block name="main"}
        <div class="tpl-content-wrapper">
            <div class="tpl-content-page-title">
                Amaze UI 文字列表
            </div>
            <ol class="am-breadcrumb">
                <li><a href="#" class="am-icon-home">首页</a></li>
                <li><a href="#">Amaze UI CSS</a></li>
                <li class="am-active">文字列表</li>
            </ol>
            <div class="tpl-portlet-components">
                <div class="portlet-title">
                    <div class="caption font-green bold">
                        <span class="am-icon-code"></span> 管理员列表
                    </div>
                    <div class="tpl-portlet-input tpl-fz-ml">
                        <div class="portlet-input input-small input-inline">
                            <div class="input-icon right">
                                 </div>
                        </div>
                    </div>


                </div>
                <div class="tpl-block">
                    <div class="am-g">
                        <div class="am-u-sm-12 am-u-md-6">
                            <div class="am-btn-toolbar">
                        <form role="form" id="registerForm" action="{:url('admin/user/search')}" method="post">
                                <div class="am-input-group am-input-group-sm">
                                <input type="text"  name="username" class="am-form-field" placeholder="用户名搜索">
                <span class="am-input-group-btn">
            <button class="am-btn  am-btn-default am-btn-success tpl-am-btn-success am-icon-search" type="submit"></button>
            </span>
            
                            </div>

                        </form>
                                </div>
                            </div>
                        </div>
                        <div class="am-u-sm-12 am-u-md-3">
                            <div class="am-form-group">
       
                            </div>
                        </div>
                        <div class="am-u-sm-12 am-u-md-3">
                            <div class="am-input-group am-input-group-sm">
                                                            </div>
                        </div>
                    </div>
                    <div class="am-g">
                        <div class="am-u-sm-12">
                            <form class="am-form">
                                <table class="am-table am-table-striped am-table-hover table-main">
                                    <thead>
                                        <tr>
                                            <th class="table-check"><input type="checkbox" class="tpl-table-fz-check"></th>
                                            <th class="table-id">ID</th>
                                            <th class="table-title">用户名</th>
                                            <th class="table-type">真实姓名</th>
                                            <th class="table-author am-hide-sm-only"></th>

                                            <th class="table-set">操作</th>
                                        </tr>
                                    </thead>


                                    
                                    
                                        
                                        {volist name="list" id="user"  }
                                    <tbody>

                                            <td><input type="checkbox"></td>
                                            <td>{$user.id}</td>
                                            <td><a href="#">{$user.username}</a></td>
                                            <td class="am-hide-sm-only">{$user.name}</td>
                                            <td class="am-hide-sm-only"></td>
                                            <td>
                                                <div class="am-btn-toolbar">
                                                    <div class="am-btn-group am-btn-group-xs">
                                                        <button class="am-btn am-btn-default am-btn-xs am-text-secondary"><span class="am-icon-pencil-square-o"></span>
                                                        <a href="{:url('admin/user/getuser',['id'=>$user.id])}">分配角色</a></button>

                                                        <button class="am-btn am-btn-default am-btn-xs am-text-secondary"><span class="am-icon-pencil-square-o"></span>
                                                        <a href="{:url('admin/user/modifyuser',['id'=>$user.id])}">修改个人资料</a></button>
                                                        <button class="am-btn am-btn-default am-btn-xs am-text-danger am-hide-sm-only"><span class="am-icon-trash-o"></span>
                                                        <a href="{:url('admin/user/beleteuser',['id'=>$user.id])}">删除</a> 
                                                        </button>
                                                    </div>
                                                </div>
                                            </td>
                                        </tr>
                                    </tbody>

                                    {/volist}
                                </table>
                                    <!-- <li style="float: right;">{$list->render()}</li> -->
                            </form>
                        </div>

                    </div>  
                </div>
                <div class="tpl-alert">
                    
                </div>
            </div>










        </div>
    </div>

{/block}


    